All Functions of Week 9

median

{stats}

Get median of a vector

ifelse

{base}

Return a or b depending on the value of test

mutate

{dplyr}

Modify/create a column in a data frame

prop.test

{stats}

Test of Equal or Given Proportions

c

{base}

Combine values/vectors into a vector

setwd

{base}

Set Working Directory

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

mean

{base}

Get mean of a vector

cut

{base}

Convert Numeric to Factor

sd

{stats}

Get standard deviation of a vector

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

library

{base}

Load an R package

max

{base}

Get maximum of a vector

with

{base}

evaluate expression in the context of a data frame

complete.cases

{stats}

Find Complete Cases

The end!